<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue使用之css动画</title>
    <script src="../vue.min.js" type="text/javascript"></script>
    <link href="../animate.css" type="text/css" rel="stylesheet" />
    <!--<style>-->
        <!--.fade-enter-active, .fade-leave-active {-->
            <!--transition: opacity .5s;-->
        <!--}-->
        <!--.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {-->
            <!--opacity: 0;-->
        <!--}-->
    <!--</style>-->
</head>
<body>
<div id="app">
    <!--<transition name="fade">-->
        <!--<div v-show="show">hello</div>-->
    <!--</transition>-->
    <transition enter-active-class=" animated tada" leave-active-class="animated bounce">
    <div v-show="show">hello</div>
    </transition>
    <button @click="change">变化</button>
</div>
<script>
    var app=new Vue({
        el:"#app",
        data:{
            show: true
        },
        methods:{
            change: function () {
                this.show = !this.show
            }
        }
    })
</script>
</body>
</html>